package com.example.deliveryserver.entities;
import com.example.server_engineer.entities.AbstractDomainEntity;
import io.swagger.v3.oas.annotations.media.Schema;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Administrator
 */
@Data
@Builder
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "delivery_address")
public class DeliveryAddress extends AbstractDomainEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Schema(description = "送货地址编号")
    private Integer id;

    @Schema(description = "送货地址")
    private String address;

    @Schema(description = "联系人姓名")
    private String contactName;

    @Schema(description = "联系人性别")
    private Integer contactSex;

    @Schema(description = "联系人电话")
    private String contactTel;

    @Schema(description = "所属用户编号")
    private String userId;



}
